import request from '@/utils/request'

// 房型列表
export function roomListApi(params) {
    return request({
      url: `/admin/mszs/room/type/pageList`,
      method: 'get',
      params
    })
  }

// 根据id删除
export function delRoomApi(params) {
  return request({
    url: `/admin/mszs/room/type/delete`,
     method: 'get',
    params
  })
}

// 根据id查询
export function RoominfoDetailApi(params) {
  return request({
    url: `/admin/mszs/room/type/load`,
     method: 'get',
    params
  })
}

//  新增房型
export function addRoominfoilApi(data) {
  return request({
    url: `/admin/mszs/room/type/insert`,
     method: 'POST',
    data
  })
}

//  修改房型
export function eidtRoominfoilApi(data) {
  return request({
    url: `/admin/mszs/room/type/update`,
     method: 'POST',
    data
  })
}